const Mock = require("mockjs") // 引入mockjs
const Wuhan_buildings = require('./src/assets/Wuhan_buildings.json') // 引入本地json文件
const Wuhan_roads = require('./src/assets/Wuhan_roads.json')
const Wuhan_bridge = require('./src/assets/Wuhan_bridge.json')
const Wuhan_events = require('./src/assets/Wuhan_events.json')
module.exports = () => {
  return Mock.mock({ // Mock.mock()函数接收一个对象作为参数，返回生成的模拟数据
    'Wuhan_buildings': Wuhan_buildings,
    'Wuhan_roads': Wuhan_roads,
    'Wuhan_bridge': Wuhan_bridge,
    'Wuhan_events': Wuhan_events
  })
}